#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2020-08-28 10:15:56
# @Author  : Zuo Zhongfei (zuozhongfei@126.com)
# @Link    : www
# @Version : $Id$

import os

from name_function import get_formatted_name
print("Enter 'q' at any time to quit")
while True:
    first = input("\nPlease give me a first name:")
    if first == 'q':
        break
    last = input("\nPlease give me a last name:")
    if last == 'q':
        break
    formatted_name = get_formatted_name(first, last)
    print("Neatly formatted name: " + formatted_name + ".")
